<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>调休记录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">

    <link rel="stylesheet" href="css/demo.css">
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/sky-mega-menu.css">

    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/bootstrap-theme.css">
    <link rel="stylesheet" href="css/table.css">




</head>
<body class="bg-blue">
<div class="body">
    <!-- mega menu -->
    <ul class="sky-mega-menu sky-mega-menu-anim-scale sky-mega-menu-response-to-icons">
        <!-- about -->
        <li>
            <a href="#"><i class="fa fa-lemon-o"></i>考勤管理系统</a>
        </li>

        <li class="right">
            <a href="/daka"><i class="fa fa-tags"></i>今日打卡</a>

        </li>
        <!-- contacts -->
        <li class="right">
            <a href="#_"><i class="fa fa-phone"></i>事项管理</a>
            <div class="grid-container3">
                <ul>
                    <li><a href="/leave"><i class="fa fa-briefcase"></i>请假</a></li>
                    <li><a href="/out"><i class="fa fa-briefcase"></i>外出</a></li>
                    <li><a href="/comleave"><i class="fa fa-briefcase"></i>调休</a></li>
                </ul>
            </div>
        </li>
        <!--/ contacts -->

        <!-- drop me a line -->
        <li aria-haspopup="true" class="right">
            <a href="#_"><i class="fa fa-tasks"></i>员工信息</a>
            <div class="grid-container3">
                <ul>
                    <li><a href="/info"><i class="fa fa-user"></i>个人信息</a></li>
                    <li><a href="/cal"><i class="fa fa-print"></i>打卡记录</a></li>
                    <li><a href="/logout"><i class="fa fa-chevron-circle-right"></i>注销</a></li>
                </ul>
            </div>

    </ul>
    <!--/ mega menu -->
    <div class="col-lg-12"><br><br></div>
    <div class="col-lg-4">
        <ul class="nav nav-pills nav-stacked" style="width:200px;text-align:center">

            <li class="active"><a href="/comleave">调休申请</a></li>
            <li class="active"><a href="/comleave2">调休记录</a></li>
        </ul>
    </div>

    <div class="col-lg-8 ">
        <form class="row">
            <div class="form-group col-lg-3">
                <input type="date" class="form-control"placeholder="开始时间">
            </div>
            <div class="form-group col-lg-3">
                <input type="date" class="form-control"  placeholder="结束时间">
            </div>
            <div class="form-group col-lg-2">
                <select class="form-control pull-left">
                    <option>拒绝</option>
                    <option>通过</option>
                    <option>待定</option>
                </select>
            </div>
            <button type="submit" class="btn btn-default " onclick="checkMine()">查我的</button>
            <button type="submit" class="btn btn-default">查询</button>
        </form>
        <table class="table table-hover tabback">
            <!-- On rows -->
            <thead >
            <th >请假号</th>
            <th >工号</th>
            <th >类型</th>
            <th >原开始时间</th>
            <th >现开始时间</th>
            <th >审批进程</th>
            <th >管理</th>
            </thead>
            <tbody>
            <tr th:each="obj:${pageInfo.list}">

                <td th:text="${obj.cid}"></td>
                <td th:text="${obj.eid}"></td>
                <td >调休</td>
                <td th:text="${obj.csrc}"></td>
                <td th:text="${obj.cdst}"></td>
                <td th:if="${obj.cgeneralagree eq 0}" >正在审批</td>
                <td th:if="${obj.cgeneralagree ne 0}" >审批完成</td>
                <td >
                    <button class="btn btn-success mybtn" th:name="${obj.cid}"><a th:href="@{/comleave3(cid=${obj.cid})}" class="atype">
                        查看详情</a></button>
                </td>
            </tr>


            </tbody>

        </table>
        <nav aria-label="Page navigation" class="pull-right">
            <ul class="pagination" >
                <li>
                    <a aria-label="Previous" th:href="@{/leave2(pageNo=${pageInfo.prePage})}">
                        <span aria-hidden="true" >&laquo;</span>
                    </a>
                </li>
                <li th:each="num:${pageInfo.navigatepageNums}"><a th:href="@{/leave2(pageNo=${num})}" th:text="${num}"></a></li>

                <li>
                    <a  aria-label="Next" th:href="@{/leave2(pageNo=${pageInfo.nextPage})}">
                        <span aria-hidden="true" >&raquo;</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
</div>


</body>


<script src="js/moment-with-locales.js"></script>
<script type="text/javascript" src="https://lib.baomitu.com/jquery/3.3.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" ></script>
<script src="js/bootstrap.js"></script>
<script>
    function checkMine(){

    }
</script>
</html>